{extend name='admin@public/content'}

{block name="button"}
{/block}
{block name="content"}
<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">

<!--    <div class="layui-form-item layui-inline">-->
<!--        <label class="layui-form-label">操作</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <select name="field" class='layui-select' lay-search="" style="height: 32px;display: block;">-->
<!--                <option value='username' {eq name="Think.get.field" value="username" }selected{/eq}>会员名</option>-->
<!--                <option value='phone' {eq name="Think.get.field" value="phone" }selected{/eq}>手机号</option>-->
<!--                &lt;!&ndash;<option value='id' {eq name="Think.get.field" value="id" }selected{/eq}>ID</option>&ndash;&gt;-->
<!--            </select>-->
<!--        </div>-->
<!--        <div class="layui-input-inline">-->
<!--            <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入要查询的内容" class="layui-input">-->
<!--        </div>-->
<!--        &lt;!&ndash;<label class="layui-form-label">其他信息</label>&ndash;&gt;-->
<!--        &lt;!&ndash;<div class="layui-input-inline">&ndash;&gt;-->
<!--        &lt;!&ndash;<input name="content" value="{$Think.get.content|default=''}" placeholder="请输入要查询的内容" class="layui-input">&ndash;&gt;-->
<!--        &lt;!&ndash;</div>&ndash;&gt;-->
<!--    </div>-->



    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">时间</label>
        <div class="layui-input-inline">
            <input name="date" id='range-date' value="{$Think.get.date|default=''}"
                   placeholder="请选择时间" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<script>
    window.laydate.render({range: true, elem: '#range-date'});
</script>
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{empty name='list'}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none="" data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left nowrap'>ID</th>
            <th class='text-left nowrap'>手机号</th>
            <th class='text-left nowrap'>用户名</th>
            <th class='text-left nowrap'>变动前</th>
            <th class='text-left nowrap'>变动金额</th>
            <th class='text-left nowrap'>变动后</th>
            <th class='text-left nowrap'>其他信息</th>
            <th class='text-left nowrap'>时间</th>
        </tr>
        </thead>
        <tbody>
        <!--{foreach $list as $key=>$vo}-->
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'>
            </td>
            <td class='text-left nowrap'>
                {$vo.id}
            </td>
            <td class='text-left nowrap'>
                {$vo['uid']|phone}
            </td>
            <td class='text-left nowrap'>
                {$vo['uid']|usernamecc}
            </td>
            <td class='text-left nowrap'>
                {$vo.before*1}
            </td>
            <td class='text-left nowrap'>
                {$vo.money*1|abs}
            </td>
            <td class='text-left nowrap'>
                {$vo.money+$vo.before|reserved|abs}
            </td>

            <td class='text-left nowrap'>
                {$vo.content}
            </td>
            <td class='text-left nowrap'>
                {$vo.create_time|date="Y-m-d H:i:s"}
            </td>
        </tr>
        <!--{/foreach}-->
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/empty}-->
</form>
{/block}